package index

import (
	// "fmt"
	"net/http"
	"html/template"
)

func MainHandle(w http.ResponseWriter, req *http.Request) {
	tmp, _ := template.ParseFiles("template/index/index.html")
	tmp.Execute(w, nil)
}

func RoomHandle(w http.ResponseWriter, req *http.Request) {
	// req.ParseForm()
	// if len([]rune(uname)) < 1 {
	// 	fmt.Fprintf(w, "%s", "傻逼，你传了些什么")
	// 	return
	// }
	tmp, _ := template.ParseFiles("template/index/room.html")
	tmp.Execute(w, nil)
}